<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<style th:fragment="styles">
</style>
<div th:fragment="content">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>会员</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index">首页</a>
                </li>
                <li>
                    <a>系统管理</a>
                </li>
                <li class="active">
                    <strong>会员</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">
        </div>
    </div>
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <input type="text" id="search_Name" name="search_Name" placeholder="会员名称" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <div class="form-group">
                                    <select id='search_Types' name='search_Types' class="form-control">
                                        <option value="">--全部状态--</option>
                                        <option value="1">已认证</option>
                                        <option value="0">未认证</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary  btn-rounded  btn-sm" id="search" onclick="doSearch()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</button>
                                <button type="submit" class="btn btn-warning  btn-rounded  btn-sm" id="refresh" onclick="doRest()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</button>
                            </div>
                        </div>
                        <div class="jqGrid_wrapper">
                            <div class="btn-group-sm" id="toolbar" role="group">
                                <a class="btn btn-success" name="AddNew" id="AddNew" data-toggle="modal" data-target="#myModalAdd" onclick="addRecord();"  >
                                    <i class="fa fa-plus"></i> 新增
                                </a>
                            </div>
                            <table class="table table-striped table-bordered table-hover " id="tableList" >
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">会员信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">
                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">
                                <div class="row">
                                    <label class="col-lg-2 control-label">会员名称</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Name" name="text_Name" placeholder="会员名称(必填)" autocomplete="off" class="form-control" maxlength="100">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">加盟时间</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_CreateTime" name="text_CreateTime" placeholder="加盟时间(必填)" autocomplete="off" class="form-control" maxlength="50" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <!--<label class="col-lg-2 control-label">地址</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Address" name="text_Address" placeholder="地址(必填)" autocomplete="off" class="form-control" maxlength="500" />
                                        </div>
                                    </div>-->
                                    <label class="col-lg-2 control-label">联系电话</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Phone" name="text_Phone" placeholder="联系电话(必填)" autocomplete="off" class="form-control" maxlength="20" />
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">类型</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='com_type' name='com_type' class="form-control">
                                                <option value="1">认证</option>
                                                <option value="0">未认证</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">推荐人类型</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="radio" class="control-label" value="合伙人" name="category" /> 推荐合伙人
                                            <input type="radio" class="control-label" value="服务商" name="category" /> 推荐服务商
                                            <input type="radio" class="control-label" value="会员" name="category" /> 推荐会员
                                        </div>
                                    </div>
                                    <div style="display:block;" id="A">
                                        <label class="col-lg-2 control-label">所属合伙人</label>
                                        <div class="col-lg-4">
                                            <div class="form-group">
                                                <select id='text_SuperiorA' name='text_SuperiorA' class="form-control">
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div style="display:none;" id="B">
                                        <label class="col-lg-2 control-label">所属服务商</label>
                                        <div class="col-lg-4">
                                            <div class="form-group">
                                                <select id='text_SuperiorB' name='text_SuperiorB' class="form-control">
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div style="display:none;" id="C">
                                        <label class="col-lg-2 control-label">所属会员</label>
                                        <div class="col-lg-4">
                                            <div class="form-group">
                                                <select id='text_SuperiorC' name='text_SuperiorC' class="form-control">
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--<div class="row">

                                </div>-->
                                <!--<div class="row">
                                    <label class="col-lg-2 control-label">备注</label>
                                    <div class="col-lg-10">
                                        <div class="form-group">
                                            <input type="text" id="text_Remark"   name="text_Remark" placeholder="备注" autocomplete="off" class="form-control" maxlength="500">
                                        </div>
                                    </div>
                                </div>-->
                            </div>
                        </form>
                    </div>
                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" onclick="saveRecord();"><i class="fa fa-save"></i>&nbsp;保存</button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-close"></i>&nbsp;关 闭</button>
                </div>
            </div>
        </div>
    </div>

</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/Scripts/ajaxfileupload.js}"></script>
    <script th:src="@{/js/member/member.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    Member.init();
</script>
</html>